package com.ygsoft.tianlu_mall.mapper;
import com.ygsoft.tianlu_mall.pojo.User;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public interface UserMapper {
    List<User> findAllUser();

    List<User> checkUser(String user_name);

    int insert(User record);

    int add(User record);

    String getUserName(int user_id);

    String getUsersTieleUrl(int user_id);

    void saveUsersTitleUrl(HashMap<String, Object> urlMap);

    int deleteByPrimaryKey(Integer user_id);

    int updateUser(User record);

    List<User> getUsersByLike(String user_phone);

    List<User> getUsersByPhone(String user_phone);

    User findByUserName(String user_name);

    User findbyusername(String user_name);

    User findRoles(String user_name);

    List<User> getDetailById(int user_id);

//    int doRecharge(int user_id, BigDecimal recharge);
    void doRecharge(HashMap<String, Object> map);

    void doCash(HashMap<String, Object> map);

    void setNewSalt(HashMap<String, Object> map);

    void setNewPassword(HashMap<String, Object> map);

    List<Map<String, Object>> updatePassword(HashMap<String,Object> map);

    String selectSystemUserPassword(int user_id);

    String getOldSalt(int user_id);


}
